package com.jiankangjin.transsystem.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jiankangjin.trading.dao.IGetMerPermInfoDao;
import com.jiankangjin.trading.dao.IIsTipOrdeAcountDao;
import com.jiankangjin.trading.dao.IMerBusiTypeInfo1Dao;
import com.jiankangjin.trading.dao.IMerFeeTypeInfoDao;
import com.jiankangjin.trading.entity.IsTipOrdeAcountEntity;
import com.jiankangjin.trading.entity.MerBusiTypeInfoEntity;
import com.jiankangjin.trading.entity.MerFeeTypeInfoEntity;
import com.jiankangjin.trading.entity.MerPermInfoEntity;
import com.jiankangjin.transsystem.services.GetIsTipOrderServices;

@Service
public class GetIsTipOrderServicesImpl implements GetIsTipOrderServices {
	
	@Autowired
	private IIsTipOrdeAcountDao isTipOrdeAcountDao;
	
	@Autowired
	private IMerBusiTypeInfo1Dao merBusiTypeInfoDao; 
	
	@Autowired
	private IMerFeeTypeInfoDao iMerFeeTypeInfoDao;
	
	@Autowired
	private IGetMerPermInfoDao iGetMerPermInfoDao;

	@Override
	public IsTipOrdeAcountEntity getIsTipOrdeAcount(IsTipOrdeAcountEntity isTipOrdeAcountEntity) {
		     
		return (IsTipOrdeAcountEntity)isTipOrdeAcountDao.selectByEntity(isTipOrdeAcountEntity);
	}
	
	@Override
	public List<MerPermInfoEntity> getMerPermInfo(MerPermInfoEntity merPermInfoEntity){
		return  (List<MerPermInfoEntity>) iGetMerPermInfoDao.listByEntity(merPermInfoEntity);
	}
	
	@Override
	public List<MerBusiTypeInfoEntity> getMerBusiTypeInfo(MerBusiTypeInfoEntity merBusiTypeInfoEntity){
	
		return (List<MerBusiTypeInfoEntity>)merBusiTypeInfoDao.listByEntity(merBusiTypeInfoEntity);
	}
	
	@Override
    public List<MerFeeTypeInfoEntity> getMerFeeTypeInfo(MerFeeTypeInfoEntity merFeeTypeInfoEntity){
		
    	return (List<MerFeeTypeInfoEntity>)iMerFeeTypeInfoDao.listByEntity(merFeeTypeInfoEntity);
    }

}
